public class Circle extends GeometricObject{
    double radius;

    public Circle() {
    }

    public Circle(double radius) {
        this.radius = radius;
    }

    public Circle(String color, boolean filled, double radius) {
        super(color, filled);
        this.radius = radius;
    }

    void getRadius()
    {
        System.out.println(this.radius);
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public void mianji(double radius)
    {
        System.out.println("圆的面积为" + 3.14*radius*radius);
    }

    public void zhouchang(double radius)
    {
        System.out.println("圆的周长为" + radius*6.28);
    }


}
